#ifndef _BSP_IIC_H_
#define _BSP_IIC_H_
#include "freertos/FreeRTOS.h"
#include "driver/gpio.h"
#include "hal/gpio_types.h"

#define ON 1
#define OFF 0
#define Automatic 1
#define Manual 0

#define IIC_UP 1
#define IIC_DOWN 0
#define IIC_SCL 18
#define IIC_SDA 23
#define GPIO_OUTPUT_PIN_SEL ((1ULL << IIC_SCL) | (1ULL << IIC_SDA))

void I2C_GPIO_Init(void);
void I2C_SendByte(uint8_t SendByte);
void I2C_Sendstr(const uint8_t *pdata, uint8_t size);
void I2C_delay(void);

void i2c_test_task(void * arg);
#endif